timezone_name_get
Alias for DateTimeZone::getName - Returns the time zone name
timezone_name_get()
returns the name of the time zone.
Returns the name of the time zone:
<?php $tz = timezone_open ( "America/New_York" ) ; echo timezone_name_get ( $tz ) ; ?>
Try it yourself
timezone_name_get ( object ) ;
parameter | describe |
---|---|
object | Required. Specifies the DateTimeZone object. |